<div ng-controller="GiftsCtrl" ng-init="infoAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/gifts/list">打卡有礼</a></li>
        <li class="active">
            详情
        </li>
        <span class="sui-form sui-form pull-right">
          <input placeholder="{{'开始时间'|translate}}"  datetimepicker type="yyyy-MM-dd"  ng-model="start_time">
          <input placeholder="{{'结束时间'|translate}}"  datetimepicker type="yyyy-MM-dd"  ng-model="end_time">
          <button class="sui-btn btn-primary" type="submit" ng-click="getGiftInfoList()">{{'search'|translate}}</button>
          <export-data startcreated="start_time" endcreated="end_time"  type="3" gift_id ="gift_id" gifttype="type"> </export-data>
         <!-- 报表统计: 
         <span ng-if="!giftnums.theday">
            今天({{giftnums.today.date}})：总共{{giftnums.today.num}},已领取{{giftnums.today.done}},未领取{{giftnums.today.not}} ; 昨天({{giftnums.yesterday.date}})：总共{{giftnums.yesterday.num}},已领取{{giftnums.yesterday.done}},未领取{{giftnums.yesterday.not}} ; 总共:{{giftnums.all.num}}
        </span>
        <span ng-if="giftnums.theday">
            {{giftnums.theday.date}}：总共{{giftnums.theday.num}},已领取{{giftnums.theday.done}},未领取{{giftnums.theday.not}}
         </span> -->
        </span>
    </ul>
    <div class="sui-msg msg-large msg-tips msg-block" ng-if="giftnums.all.num">
        <div class="msg-con">
            <span>
            今天({{giftnums.today.date}})：总共{{giftnums.today.num}}<span ng-show="type==1||type==4">,已领取{{giftnums.today.done}},未领取{{giftnums.today.not}}</span> ; 昨天({{giftnums.yesterday.date}})：总共{{giftnums.yesterday.num}}<span ng-show="type==1||type==4">,已领取{{giftnums.yesterday.done}},未领取{{giftnums.yesterday.not}}</span>            ; 总共参与人数:{{giftnums.all.num}}<span ng-show="type==1||type==4">,已领取{{giftnums.all.done}},未领取{{giftnums.all.not}}</span>;
            </span>
            <!--   <span ng-if="giftnums.theday">
            {{giftnums.theday.date}}：总共{{giftnums.theday.num}},已领取{{giftnums.theday.done}},未领取{{giftnums.theday.not}}
            </span> -->
        </div>
        <s class="msg-icon"></s>
    </div>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'用户信息'|translate}}</th>
                <th ng-show="type==1||type==4">{{'是否领取'|translate}}</th>
                <th ng-show="type==2">{{'测试次数'|translate}}</th>
                <th ng-show="type==2">{{'分享次数'|translate}}</th>
                <th ng-show="type==2">{{'海报保存次数'|translate}}</th>
                <th>{{'时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in giftdetails">
                <td>
                    {{list.gift_d_id}}
                </td>
                <td>
                    <wxinfo ng-model="list.member_id" stye="1"></wxinfo>
                </td>
                <td ng-show="type==1||type==4">
                    {{list.status==1?'未领取':'已领取'}}
                </td>
                <td ng-show="type==2">
                    {{list.times}}
                </td>
                <td ng-show="type==2">
                    {{list.share}}
                </td>
                <td ng-show="type==2">
                    {{list.haibao}}
                </td>
                <td>
                    {{list.created_at}}
                </td>
                <td>
                    <span ng-show="type==1||type==4">
                    <button   class="sui-btn btn-primary" ng-show="list.status ==1" ng-click="destroy(list.gift_d_id)">{{'确认领取'|translate}}</button>
                    </span>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="total_count" get-data="getGiftInfoList(pageNo)"></pager>
    <!-- 分页end -->
</div>